home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PCGUIA 111
/
PC Guia 111.iso
/
Software
/
Utils
/
NetObjects Fusion 7.0
/
NOF7Trial.exe
/
data1.cab
/
Fsi_-_English
/
PublishSettings
/
validpath.js
< prev
Wrap
Text File
|
2002-06-12
|
493b
|
27 lines
function istalnum(c)
{
if (c >= '0' && c <= '9')
return true;
else if (c >= 'a' && c <= 'z')
return true;
else if (c >= 'A' && c <= 'Z')
return true;
else
return false;
}
function IsValidAliasPath(sPath)
{
iLength = sPath.length;
if (!iLength)
return false;
/* Dumb validation: simply check if there is at least one alphanumeric
character. */
for(i = 0; i < iLength; i++)
{
if(istalnum(sPath.substr(i, 1)))
return true;
}
return false;
}